package com.example.chatweb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName pdfimage_extract
 */
@TableName(value ="pdfimage_extract")
@Data
public class PdfimageExtract implements Serializable {
    /**
     * 
     */
    private Long pdfUuid;

    /**
     * 
     */
    @TableId(value ="image_uuid",type = IdType.ASSIGN_ID)
    private Long imageUuid;

    /**
     * 
     */
    private String imageUrl;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PdfimageExtract other = (PdfimageExtract) that;
        return (this.getPdfUuid() == null ? other.getPdfUuid() == null : this.getPdfUuid().equals(other.getPdfUuid()))
            && (this.getImageUuid() == null ? other.getImageUuid() == null : this.getImageUuid().equals(other.getImageUuid()))
            && (this.getImageUrl() == null ? other.getImageUrl() == null : this.getImageUrl().equals(other.getImageUrl()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPdfUuid() == null) ? 0 : getPdfUuid().hashCode());
        result = prime * result + ((getImageUuid() == null) ? 0 : getImageUuid().hashCode());
        result = prime * result + ((getImageUrl() == null) ? 0 : getImageUrl().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", pdfUuid=").append(pdfUuid);
        sb.append(", imageUuid=").append(imageUuid);
        sb.append(", imageUrl=").append(imageUrl);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}